<?php
/**
 * Created by PhpStorm.
 * User: wangye
 * Date: 19-2-25
 * Time: 上午11:30
 */
function &myFunc() {
    static $b = 10;
//    $b = 10;
    return $b;
}

echo myFunc();

$a = &myFunc();

$a = 100;
echo myFunc();

